'use strict'

const gohttp=require('gohttp')

class login{

    constructor () {
        this.param='/'
    }

    async get (c) {
        let data=c.service.model.wxlogin.get()
        c.send(data)
    }
    async post(c){
      console.log('这是传递给我的用户登录数据：',c.body.toString())
        let data=await c.service.model.wxlogin.insert(c.body.toString())
        c.send(data)
    }
    async delete(c){
        let data=c.service.model.wxlogin.delete(c.body.toString())
        c.send(data)
    }
}

module.exports = login
